package org.mnswf.model {
	
	public class CertificationExamQuestion {
		
		[Bindable]
		public var id:int;
		[Bindable]
		public var certificationExamId:int;
		[Bindable]
		public var questionText:String;
		[Bindable]
		public var points:int;
		[Bindable]
		public var duration:int;
		[Bindable]
		public var dateAdded:Date;
		
		public function CertificationExamQuestion() {
			id = -1;
		}
		
		public function parseTransferObject(transferObject:Object):void {
			id = (transferObject.ID != null) ? transferObject.ID : transferObject.id;
			certificationExamId = (transferObject.CERTIFICATIONEXAMID != null) ? transferObject.CERTIFICATIONEXAMID : transferObject.certificationExamId;
			questionText = (transferObject.QUESTIONTEXT != null) ? transferObject.QUESTIONTEXT : transferObject.questionText;
			points = (transferObject.POINTS != null) ? transferObject.POINTS : transferObject.points;
			duration = (transferObject.DURATION != null) ? transferObject.DURATION : transferObject.duration;
			dateAdded = (transferObject.DATEADDED != null) ? transferObject.DATEADDED : transferObject.dateAdded;
		}
		
	}
	
}